using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;

namespace Blog.Repository;


/// <summary>
/// 操作日志
///</summary>
[SugarTable("ad_opration_log")]
public class AdOprationLogEntity: EntityAdd
{

    /// <summary>
    /// 主键Id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
    public long Id { get; set; }
    
    /// <summary>
    /// 接口名称
    ///</summary>
    [SugarColumn(ColumnName = "ApiLabel")]
    public string? ApiLabel { get; set; }
    
    /// <summary>
    /// 接口地址
    ///</summary>
    [SugarColumn(ColumnName = "ApiPath")]
    public string? ApiPath { get; set; }
    
    /// <summary>
    /// 接口提交方法
    ///</summary>
    [SugarColumn(ColumnName = "ApiMethod")]
    public string? ApiMethod { get; set; }
    
    /// <summary>
    /// 昵称
    ///</summary>
    [SugarColumn(ColumnName = "NickName")]
    public string? NickName { get; set; }
    
    /// <summary>
    /// IP
    ///</summary>
    [SugarColumn(ColumnName = "IP")]
    public string? IP { get; set; }
    
    /// <summary>
    /// 浏览器
    ///</summary>
    [SugarColumn(ColumnName = "Browser")]
    public string? Browser { get; set; }
    
    /// <summary>
    /// 操作系统
    ///</summary>
    [SugarColumn(ColumnName = "Os")]
    public string? Os { get; set; }
    
    /// <summary>
    /// 设备
    ///</summary>
    [SugarColumn(ColumnName = "Device")]
    public string? Device { get; set; }
    
    /// <summary>
    /// 浏览器信息
    ///</summary>
    [SugarColumn(ColumnName = "BrowserInfo")]
    public string? BrowserInfo { get; set; }
    
    /// <summary>
    /// 耗时（毫秒）
    ///</summary>
    [SugarColumn(ColumnName = "ElapsedMilliseconds")]
    public long ElapsedMilliseconds { get; set; }
    
    /// <summary>
    /// 操作状态
    ///</summary>
    [SugarColumn(ColumnName = "Status")]
    public bool Status { get; set; }
    
    /// <summary>
    /// 操作消息
    ///</summary>
    [SugarColumn(ColumnName = "Msg")]
    public string? Msg { get; set; }
    
    /// <summary>
    /// 操作结果
    ///</summary>
    [SugarColumn(ColumnName = "Result")]
    public string? Result { get; set; }
    
    /// <summary>
    /// 操作参数
    ///</summary>
    [SugarColumn(ColumnName = "Params")]
    public string? Params { get; set; }
    
    /// <summary>
    /// 租户Id
    ///</summary>
    [SugarColumn(ColumnName = "TenantId")]
    public long? TenantId { get; set; }
    }
